#pragma once
#include "BaseObject.h"
#include "../SGD Wrappers/SGD_Listener.h"


class KeyPad : public BaseObject, public SGD::Listener
{

	BaseObject* door = nullptr;
	std::string doorEvent;
	std::string triggerEvent;

	std::string interactEvent;

public:
	KeyPad();
	virtual ~KeyPad();

	virtual void HandleCollision(const IBase* pOther) override;
	virtual void HandleEvent(const SGD::Event* pEvent) override;
	virtual SGD::Rectangle GetRect(void)	const;
	virtual int GetType(void) const { return OBJ_KEYPAD; }
	void SetDoorEvent(const char* _doorEvent) { doorEvent = _doorEvent; }
	void SetTriggerEvent(const char* _triggerEvent) { triggerEvent = _triggerEvent; }



	BaseObject* GetDoor(void) const { return door; }
	void SetDoor(BaseObject*);
};

